% TEST_ID: LANG-EXPAND-0028
% CATEGORY: language/array-ops/ops
% 测试 .* 运算符

function test_times
    A = [1, 2; 3, 4];
    B = [5, 6; 7, 8];
    C = A .* B;
    assert(isequal(C, [5 12; 21 32]));

    A = [1, 2; 3, 4];
    B = [5  6];
    C = A .* B;
    assert(isequal(C, [5 12; 15 24]));

    A = [1, 2; 3, 4];
    B = [5];
    C = A .* B;
    assert(isequal(C, [5 10; 15 20]));
end


